<?php
session_start();
//error_reporting(0);
require_once('config.php');
if(empty($_SESSION['id_log'])){
	header ("location: login.php");
}
$aks=$_SESSION['aksesU'];
$idsales=$_SESSION['IdSales'];

for ($i=1; $i<=30; $i++){
	$menu[$i-1]=substr($aks,$i-1,1);
}

$idx=1; 

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	
<!-- Mirrored from www.netcoders.net/smoothadmin/index.php by HTTrack Website Copier/3.x [XR&CO'2010], Sun, 11 Nov 2012 14:30:43 GMT -->
<head>
		<title>ERP CV.NOERALISA CUP</title>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		<!-- stylesheets -->
		<link rel="stylesheet" type="text/css" href="css/reset.css" />
		<link rel="stylesheet" type="text/css" href="css/style.css" media="screen" />
		<link href="bootstrap/css/bootstrap.css" rel="stylesheet">
		<!--<link id="color" rel="stylesheet" type="text/css" href="css/colors/blue.css" />-->
		<!-- scripts (jquery) -->
		<script src="js/jquery-1.8.3.js" type="text/javascript"></script>
		<script type="text/javascript" src="js/jquery-1.6.4.min.js"></script>
		<script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
		<!--[if IE]><script language="javascript" type="text/javascript" src="scripts/excanvas.min.js"></script><![endif]-->
		<!--<script src="scripts/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
		<script src="scripts/jquery.ui.selectmenu.js" type="text/javascript"></script>
		<script src="scripts/jquery.flot.min.js" type="text/javascript"></script>
		<script src="scripts/tiny_mce/tiny_mce.js" type="text/javascript"></script>
		<script src="scripts/tiny_mce/jquery.tinymce.js" type="text/javascript"></script>
		-->

		<link rel="stylesheet" media="all" type="text/css" href="js/jquery-ui-themes-1.8.6/themes/smoothness/jquery-ui.css" />
		<link rel="stylesheet" media="all" type="text/css" href="css/jquery-ui-timepicker-addon.css" />
		
		
		<script type="text/javascript" src="js/jquery-ui.min.js"></script>
		<script type="text/javascript" src="js/jquery-ui-timepicker-addon.js"></script>
		<script type="text/javascript" src="js/jquery-ui-sliderAccess.js"></script>
		<!-- scripts (custom) -->
		<!--<script src="scripts/smooth.js" type="text/javascript"></script>
		<script src="scripts/smooth.menu.js" type="text/javascript"></script>
		<script src="scripts/smooth.chart.js" type="text/javascript"></script>
		<script src="scripts/smooth.table.js" type="text/javascript"></script>
		<script src="scripts/smooth.form.js" type="text/javascript"></script>
		<script src="scripts/smooth.dialog.js" type="text/javascript"></script>
		<script src="scripts/smooth.autocomplete.js" type="text/javascript"></script>
		-->
        <!-- Grafik -->
		<script type="text/javascript" src="js/highcharts.js"></script>
		<script type="text/javascript" src="js/modules/exporting.js"></script>

		<!-- End Grafik -->
		<script type="text/javascript">


			$(document).ready(function () {
				style_path = "css/colors";
				$('.dropdown-toggle').dropdown();
				//$("#date-picker").datepicker();

				//$("#box-tabs, #box-left-tabs").tabs();

				 $('.dropdown input, .dropdown label, .dropdown-menu').click(function(e) {
				    e.stopPropagation();
				 });
	
			});
		</script>
		<style type="text/css">
			.navbar .nav > li > a{
				color: #4E4E4E;
			    font-weight: bold;
			    text-decoration: none;
			}			
		</style>
	</head>
	<body>
		<!-- header -->
		<div id="header">
			<!-- logo -->
			<div id="logo">
            <img src="images/athis.png" style="height:60px;width:180px">
				<h1><a href="index.php" title="Smooth Admin"></a></h1>
			</div><p />
			<!-- end logo s-->
			<!-- user -->           
            <div class="navbar navbar-fixed-right">					     			    
			    <div class="nav-collapse"><!-- Other nav bar content -->		
			        <!-- The drop down menu -->
			        <ul class="nav nav-pills pull-right" style="margin-bottom: 10px;">
			        <li><a href="#"> Selamat Datang ATHIS CUP <font color="#FF0000"><?php echo ucwords( $_SESSION['namaU']);?></font> |</a></li>		
					<li><a href="logout.php">Log Out</a></li>	  
			        </ul>
				</div>
			</div>
			<!-- end user -->
			<div id="header-inner">
				<div id="home">
					<a href="index.php" title="Home"></a>
				</div>
				<!-- quick -->
				<ul id="quick">
					<li>
						<?php if ($menu[$idx]=="1"){ $_SESSION['master']=1;?>
						<a title="Products"><span class="icon"><img src="images/icons/application_double.png" alt="Products" /></span><span>Master</span></a>
						<?php } $idx++;?>
						<ul>
							<?php if ($menu[$idx]=="1"){ $_SESSION['jns_barang']=1;?>
							<li><a href="?pages=jenis_barang">Jenis Barang Produksi</a></li>
							<?php } $idx++;?>
							<?php if ($menu[$idx]=="1"){ $_SESSION['kodebb']=1;?>
							<li><a href="?pages=kode">Kode Bahan Baku</a></li>
							<?php } $idx++;?>
							<?php if ($menu[$idx]=="1"){ $_SESSION['suplier']=1;?>
							<li><a href="?pages=suplier">Suplier</a></li>
							<?php } $idx++;?>
							<?php if ($menu[$idx]=="1"){ $_SESSION['customer']=1;?>
							<li><a href="?pages=customer">Customer</a></li>
							<?php } $idx++;?>
							<?php if ($menu[$idx]=="1"){ $_SESSION['sales']=1;?>
							<li><a href="?pages=sales">Sales</a></li>
							<?php } $idx++;?>
							<?php if ($menu[$idx]=="1"){ $_SESSION['user']=1;?>
							<li><a href="?pages=user">User</a></li>
							<?php } $idx++;?>
						</ul>
					</li>
					<li>
						<?php if ($menu[$idx]=="1"){ $_SESSION['bb']=1;?>
						<a  title="Products"><span class="icon"><img src="images/icons/application_double.png" alt="Products" /></span><span>Bahan Baku</span></a>
						<?php } $idx++;?>
						<ul>
							<?php if ($menu[$idx]=="1"){ $_SESSION['bbmasuk']=1;?>
							<li><a href="?pages=bb_masuk">Bahan Baku Masuk</a></li>
							<?php } $idx++;?>
							<?php if ($menu[$idx]=="1"){ $_SESSION['bbkeluar']=1;?>
							<li><a href="?pages=bb_keluar">Bahan Baku Keluar</a></li>
							<?php } $idx++;?>
							<?php if ($menu[$idx]=="1"){ $_SESSION['bbemergency']=1;?>
							<li><a href="?pages=bb_emergency">Bahan Baku Emergency</a></li>
							<?php } $idx++;?>
						</ul>
					</li>
					<li>
						<?php if ($menu[$idx]=="1"){ $_SESSION['produksi']=1;?>
						<a  title="Products"><span class="icon"><img src="images/icons/application_double.png" alt="Products" /></span><span>Produksi</span></a>
						<?php } $idx++;?>
						<ul>
							<?php if ($menu[$idx]=="1"){ $_SESSION['formula']=1;?>
							<li><a href="?pages=formula">Formula Produksi</a></li>
							<?php } $idx++;?>
							<?php if ($menu[$idx]=="1"){ $_SESSION['proses']=1;?>
							<li><a href="?pages=produksi">Proses Produksi</a></li>
							<?php } $idx++;?>
							<?php if ($menu[$idx]=="1"){ $_SESSION['sisa']=1;?>
							<li><a href="?pages=sisa_prod">Sisa Produksi</a></li>
							<?php } $idx++;?>
							<?php if (substr($aks,14,1)=='1'){ $_SESSION['sisa']=1;?>
							<li><a href="?pages=limbah_prod">Limbah Produksi</a></li>
							<?php } $idx++;?>
							<?php if ($menu[$idx]=="1"){ $_SESSION['rtu']=1;?>
							<li><a href="?pages=rtu">Ready to Use</a></li>
							<?php } $idx++;?>
							<?php if ($menu[$idx]=="1"){ $_SESSION['rts']=1;?>
							<li><a href="?pages=rts">Ready to Sale</a></li>
							<?php } $idx++;?>
							<?php if ($menu[$idx]=="1"){ $_SESSION['emergencystock']=1;?>
							<li><a href="?pages=stock_emergency">Emergency Stock</a></li>
							<?php } $idx++;?>							
						</ul>
					</li>
					<li>
						<?php if ($menu[$idx]=="1"){ $_SESSION['penjualan']=1;?>
						<a  title="Products"><span class="icon"><img src="images/icons/application_double.png" alt="Products" /></span><span>Pengeluaran</span></a>
						<?php } $idx++;?>
						<ul>
							<?php if ($menu[$idx]=="1"){ $_SESSION['bkeluar']=1;?>
							<li><a href="?pages=brg_kluar_rtu">Barang Keluar RTU</a></li>
							<?php } $idx++;?>
							<?php if ($menu[$idx]=="1"){ $_SESSION['brg_kluar']=1;?>
							<li><a href="?pages=brg_kluar">Barang Keluar RTS</a></li>
							<?php } $idx++;?>
							<!--<?php if ($menu[$idx]=="1"){ $_SESSION['breject']=1;?>
							<li><a href="?pages=brg_reject">Barang Reject</a></li>
							<?php } $idx++;?>
							<?php if ($menu[$idx]=="1"){ $_SESSION['bperbaikan']=1;?>
							<li><a href="?pages=brg_perbaikan">Barang Perbaikan</a></li>
							<?php } $idx++;?>-->							
						</ul>
					</li>
					<li>
						<?php if ($menu[$idx]=="1"){ $_SESSION['penjadwalan']=1;?>
						<a  title="Products"><span class="icon"><img src="images/icons/application_double.png" alt="Products" /></span><span>Penjadwalan</span></a>						
						<?php } $idx++;?>
						<ul>
							<?php if ($menu[$idx]=="1"){ $_SESSION['jadwalatur']=1;?>
							<li><a href="?pages=jadwal">Pengaturan Jadwal</a></li>
							<?php } $idx++;?>
							<?php if ($menu[$idx]=="1"){ $_SESSION['jadwalsaya']=1;?>
							<li><a href="?pages=jadwal_saya">Jadwal Saya</a></li>
							<?php } $idx++;?>
							<?php if ($menu[$idx]=="1"){ $_SESSION['jadwalhistory']=1;?>
							<li><a href="?pages=jadwal_history">History Jadwal</a></li>
							<?php } $idx++;?>
							<?php if ($menu[$idx]=="1"){ $_SESSION['jadwalsekarang']=1;?>
							<li><a href="?pages=jadwal_sekarang">Jadwal Hari Ini</a></li>
							<?php } $idx++;?>
						</ul>
					</li>
				</ul>
				<!-- end quick -->
				<div class="corner tl"></div>
				<div class="corner tr"></div>
			</div>
		</div>
		<!-- end header -->
		<!-- content -->
		<div id="content">
			<!-- content / right -->
			<div id="right">
				<!-- table -->
				<div class="box">
					<?php require_once('pages.php');?>
				</div>
				<!-- end table -->
				
			</div>
			<!-- end content / right -->
		</div>
		<!-- end content -->
		<!-- footer -->
		<div id="footer">
			<p>Copyright &copy; 2012 CV. Creative Software Center.</p>
		</div>
		<!-- end footert -->
	</body>

<!-- Mirrored from www.netcoders.net/smoothadmin/index.php by HTTrack Website Copier/3.x [XR&CO'2010], Sun, 11 Nov 2012 14:30:44 GMT -->
</html>